<template>
	<view>
	<view class="content">
	    <ren-calendar ref='ren' :markDays='markDays' :headerBar='false' @onDayClick='onDayClick'></ren-calendar>
	    <view class="change">选中日期：{{curDate}}</view>
	</view>


		<!-- 周日期选择 -->
		<!-- <xweek v-on:back="changeBack"></xweek> -->

	</view>
</template>

<script>
	import avatar from "../../components/yq-avatar/yq-avatar.vue";
	import RenCalendar from '@/components/ren-calendar/ren-calendar.vue'

	const util = require("../../utils/util.js");
	//获取应用实例
	const api = require("../../config/api.js");
	 export default {
	        components:{
	            RenCalendar
	        },
	        data() {
	            return {
	                curDate:'',
	                markDays:[]
	            }
	        },
	        onReady() {
	            let today = this.$refs.ren.getToday().date;
	            this.curDate = today;
	            this.markDays.push(today);
	        },
	        methods: {
	            onDayClick(data){
	                this.curDate = data.date;
	            }
	        }
	    }
</script>

<style>
	@import url("./signincalendar.css");
</style>
